package 实战;

public class Run {
    public static void main(String[] args) throws InterruptedException {
        MyThread thread=new MyThread();
        Thread t1=new Thread(thread,"no 1");
        Thread t2=new Thread(thread,"no 2");
        Thread t3=new Thread(thread,"no 3");
        Thread t4=new Thread(thread,"no 4");
        Thread t5=new Thread(thread,"no 5");
        Thread t6=new Thread(thread,"no 6");
        Thread t7=new Thread(thread,"no 7");
        Thread t8=new Thread(thread,"no 8");
        Thread t9=new Thread(thread,"no 9");
        Thread t10=new Thread(thread,"no 10");
        t1.start();
        t2.start();
        t3.start();
        t4.start();
        t5.start();
        t6.start();
        t7.start();
        t8.start();
        t9.start();
        t10.start();
//        Thread.sleep(5000);
//        System.out.println(thread.getCount());
    }
}
